<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Class: Spec::Runner::Formatter::BaseTextFormatter</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Class</strong></td>
          <td class="class-name-in-header">Spec::Runner::Formatter::BaseTextFormatter</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../../../../files/vendor\plugins\rspec/lib/spec/runner/formatter/base_text_formatter_rb.html">
                vendor\plugins\rspec/lib/spec/runner/formatter/base_text_formatter.rb
                </a>
        <br />
            </td>
        </tr>

        <tr class="top-aligned-row">
            <td><strong>Parent:</strong></td>
            <td>
                <a href="BaseFormatter.html">
                BaseFormatter
               </a>
            </td>
        </tr>
        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">

    <div id="description">
      <p>
Baseclass for text-based formatters. Can in fact be used for non-text based
ones too - just ignore the <tt>output</tt> constructor argument.
</p>

    </div>


   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000261">backtrace_line</a>&nbsp;&nbsp;
      <a href="#M000268">blue</a>&nbsp;&nbsp;
      <a href="#M000259">close</a>&nbsp;&nbsp;
      <a href="#M000262">colour</a>&nbsp;&nbsp;
      <a href="#M000254">colour=</a>&nbsp;&nbsp;
      <a href="#M000256">colourise</a>&nbsp;&nbsp;
      <a href="#M000255">dump_failure</a>&nbsp;&nbsp;
      <a href="#M000258">dump_pending</a>&nbsp;&nbsp;
      <a href="#M000257">dump_summary</a>&nbsp;&nbsp;
      <a href="#M000253">example_pending</a>&nbsp;&nbsp;
      <a href="#M000260">format_backtrace</a>&nbsp;&nbsp;
      <a href="#M000264">green</a>&nbsp;&nbsp;
      <a href="#M000266">magenta</a>&nbsp;&nbsp;
      <a href="#M000252">new</a>&nbsp;&nbsp;
      <a href="#M000263">output_to_tty?</a>&nbsp;&nbsp;
      <a href="#M000265">red</a>&nbsp;&nbsp;
      <a href="#M000267">yellow</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->

    <div id="section">





    <div id="attribute-list">
      <h3 class="section-bar">Attributes</h3>

      <div class="name-list">
        <table>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">dry_run</td>
          <td class="context-item-value">&nbsp;[W]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        </table>
      </div>
    </div>
      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Class methods</h3>

      <div id="method-M000252" class="method-detail">
        <a name="M000252"></a>

        <div class="method-heading">
          <a href="BaseTextFormatter.src/M000252.html" target="Code" class="method-signature"
            onclick="popupCode('BaseTextFormatter.src/M000252.html');return false;">
          <span class="method-name">new</span><span class="method-args">(where)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Creates a <a href="BaseTextFormatter.html#M000252">new</a> instance that
will write to <tt>where</tt>. If <tt>where</tt> is a <a
href="../../../String.html">String</a>, output will be written to the File
with that name, otherwise <tt>where</tt> is exected to be an IO (or an
object that responds to puts and write).
</p>
        </div>
      </div>

      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M000259" class="method-detail">
        <a name="M000259"></a>

        <div class="method-heading">
          <a href="BaseTextFormatter.src/M000259.html" target="Code" class="method-signature"
            onclick="popupCode('BaseTextFormatter.src/M000259.html');return false;">
          <span class="method-name">close</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000254" class="method-detail">
        <a name="M000254"></a>

        <div class="method-heading">
          <a href="BaseTextFormatter.src/M000254.html" target="Code" class="method-signature"
            onclick="popupCode('BaseTextFormatter.src/M000254.html');return false;">
          <span class="method-name">colour=</span><span class="method-args">(colour)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000256" class="method-detail">
        <a name="M000256"></a>

        <div class="method-heading">
          <a href="BaseTextFormatter.src/M000256.html" target="Code" class="method-signature"
            onclick="popupCode('BaseTextFormatter.src/M000256.html');return false;">
          <span class="method-name">colourise</span><span class="method-args">(s, failure)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000255" class="method-detail">
        <a name="M000255"></a>

        <div class="method-heading">
          <a href="BaseTextFormatter.src/M000255.html" target="Code" class="method-signature"
            onclick="popupCode('BaseTextFormatter.src/M000255.html');return false;">
          <span class="method-name">dump_failure</span><span class="method-args">(counter, failure)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000258" class="method-detail">
        <a name="M000258"></a>

        <div class="method-heading">
          <a href="BaseTextFormatter.src/M000258.html" target="Code" class="method-signature"
            onclick="popupCode('BaseTextFormatter.src/M000258.html');return false;">
          <span class="method-name">dump_pending</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000257" class="method-detail">
        <a name="M000257"></a>

        <div class="method-heading">
          <a href="BaseTextFormatter.src/M000257.html" target="Code" class="method-signature"
            onclick="popupCode('BaseTextFormatter.src/M000257.html');return false;">
          <span class="method-name">dump_summary</span><span class="method-args">(duration, example_count, failure_count, pending_count)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000253" class="method-detail">
        <a name="M000253"></a>

        <div class="method-heading">
          <a href="BaseTextFormatter.src/M000253.html" target="Code" class="method-signature"
            onclick="popupCode('BaseTextFormatter.src/M000253.html');return false;">
          <span class="method-name">example_pending</span><span class="method-args">(behaviour_name, example_name, message)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000260" class="method-detail">
        <a name="M000260"></a>

        <div class="method-heading">
          <a href="BaseTextFormatter.src/M000260.html" target="Code" class="method-signature"
            onclick="popupCode('BaseTextFormatter.src/M000260.html');return false;">
          <span class="method-name">format_backtrace</span><span class="method-args">(backtrace)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <h3 class="section-bar">Protected Instance methods</h3>

      <div id="method-M000261" class="method-detail">
        <a name="M000261"></a>

        <div class="method-heading">
          <a href="BaseTextFormatter.src/M000261.html" target="Code" class="method-signature"
            onclick="popupCode('BaseTextFormatter.src/M000261.html');return false;">
          <span class="method-name">backtrace_line</span><span class="method-args">(line)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000268" class="method-detail">
        <a name="M000268"></a>

        <div class="method-heading">
          <a href="BaseTextFormatter.src/M000268.html" target="Code" class="method-signature"
            onclick="popupCode('BaseTextFormatter.src/M000268.html');return false;">
          <span class="method-name">blue</span><span class="method-args">(text)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000262" class="method-detail">
        <a name="M000262"></a>

        <div class="method-heading">
          <a href="BaseTextFormatter.src/M000262.html" target="Code" class="method-signature"
            onclick="popupCode('BaseTextFormatter.src/M000262.html');return false;">
          <span class="method-name">colour</span><span class="method-args">(text, colour_code)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000264" class="method-detail">
        <a name="M000264"></a>

        <div class="method-heading">
          <a href="BaseTextFormatter.src/M000264.html" target="Code" class="method-signature"
            onclick="popupCode('BaseTextFormatter.src/M000264.html');return false;">
          <span class="method-name">green</span><span class="method-args">(text)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000266" class="method-detail">
        <a name="M000266"></a>

        <div class="method-heading">
          <a href="BaseTextFormatter.src/M000266.html" target="Code" class="method-signature"
            onclick="popupCode('BaseTextFormatter.src/M000266.html');return false;">
          <span class="method-name">magenta</span><span class="method-args">(text)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000263" class="method-detail">
        <a name="M000263"></a>

        <div class="method-heading">
          <a href="BaseTextFormatter.src/M000263.html" target="Code" class="method-signature"
            onclick="popupCode('BaseTextFormatter.src/M000263.html');return false;">
          <span class="method-name">output_to_tty?</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000265" class="method-detail">
        <a name="M000265"></a>

        <div class="method-heading">
          <a href="BaseTextFormatter.src/M000265.html" target="Code" class="method-signature"
            onclick="popupCode('BaseTextFormatter.src/M000265.html');return false;">
          <span class="method-name">red</span><span class="method-args">(text)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000267" class="method-detail">
        <a name="M000267"></a>

        <div class="method-heading">
          <a href="BaseTextFormatter.src/M000267.html" target="Code" class="method-signature"
            onclick="popupCode('BaseTextFormatter.src/M000267.html');return false;">
          <span class="method-name">yellow</span><span class="method-args">(text)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>